import Vue from 'vue'
import Vuex from 'vuex'

import state from "./state"
import mutations from "./mutations"
import actions from "./actions"
import getters from "./getters"

Vue.use(Vuex)

const store = new Vuex.Store({
    //保存状态
    state,
    //此处定义多个方法
    mutations,
    actions,
    getters,
    modules:{

    }
})
//3、导出store对象
export default store